﻿using MengLin.OOP.DesignPattern.CompsitePattern.CompanyManager.Abstract;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MengLin.OOP.DesignPattern.CompsitePattern.CompanyManager.Implements
{
    /// <summary>
    /// 人力资源部
    /// </summary>
    public class HRDepartment : AbstractCompany
    {
        public HRDepartment(string name) : base(name)
        {

        }

        public override void Add(AbstractCompany c)
        {

        }

        public override void Remove(AbstractCompany c)
        {

        }

        public override void Display(int depth)
        {
            Console.WriteLine(new String('-', depth) + _name);
        }

        public override void LineOfDuty()
        {
            Console.WriteLine("{0} 员工招聘培训管理", _name);
        }
    }
}
